package com.parking.status.sync.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.SchedulingConfigurer;
import org.springframework.scheduling.config.ScheduledTaskRegistrar;

import java.util.concurrent.Executor;

/**
 * Created by Jianjun.Hu on 2015/9/11.
 */
@Configuration
@EnableScheduling
public class ScheduleConfig {// implements SchedulingConfigurer  //@EnableWebSocketMessageBroker

//    @Autowired
//    private Executor taskScheduler;
//
//    @Override
//    public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
//        taskRegistrar.setScheduler(taskScheduler);
//    }
}
